package com.demo.page9101.feign.columnManagement;




import com.demo.common.entity.ColumnManagement;

import com.demo.page9101.feign.impl.columnManagement.ColumnManagementFeignImpl;
import org.apache.ibatis.annotations.Param;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * 查询父节点、父类下的子节点
 * 作者：孙佳佳
 * 补充：张佑威
 */
@FeignClient(name = "houpu-service-bean",fallback = ColumnManagementFeignImpl.class)
public interface ColumnManagementFeign {
    @GetMapping("/ColumnManagement/getfather")
    List<ColumnManagement> fatherAll();

    @GetMapping("/ColumnManagement/gettype")
    List<ColumnManagement> typeAll(@RequestParam("id") Integer id);

    //    查询单个类别
    @GetMapping("/ColumnManagement/getmanagement")
    ColumnManagement oneManagement(@RequestParam("id") Integer id);
}
